# 作业三
def curExchange(nWorth):
    if nWorth[-1] in ['$']:
        CNY=float(nWorth[0:-1])*6.8833
        print("可兑换的人民币为：%.3f￥"%CNY)
    elif nWorth[-1] in ['￥']:
        USD=float(nWorth[0:-1])*0.1452
        print("可兑换的美元为：%.3f$"%USD)
    else:
        print("输入有误")
nWorth = input("请依次输入人民币值与符号(￥/$):")
if __name__ == '__main__':
    curExchange(nWorth)